Summary
Data can be represented in many ways, with different purposes.
Some useful information from today:
- Base64 is encoding, not encrypting
- Computers love
binary, humans lovedecimal, and they both have a thing forhexadecimal - We need the
base64andhashlibmodules imported in our Python scripts in order for us to work withBase64encoding/decoding andHashing
Some useful Python commands from today:
- Convert Binary to Decimal -
int(n,2) - Find the ASCII code -
ord('X') - Find a character based on its ASCII code -
chr(88) - Encode in Base64 format -
(base64.b64encode(text1.encode('ascii'))).decode('ascii') - Decode from Base64 format -
(base64.b64decode(base64_message.encode('ascii'))).decode('ascii')